Add a keyboard shortcut to the “Collapse Artboards And Groups” function in Sketch. Use Command-E to collapse all the current document’s Artboards and Groups.

collapse-plugin-example