Close Tabbed Panels - is there a command?


I can close all the tabbed panels, by going to the options ‘cog’ and selecting close.
My question is, can this be done using a keyboard command?
I’m looking to make a macro to toggle the visibility of the tabbed panels.


Have you tried the FullScreen command?

Jordy’s macro worked well for my needs with a little tweaking for the particular panels I use. See this thread: How to toggle a docked panel?