Collapsing all tracks at once in Sequencer

There is Collapse All Nodes in the View options menu: