Closing other tabs in terminal on Mac?

I am using iTerm2, but I wouldn't mind switching back to the original terminal for just this feature.

I open hundreds of SSH tabs every day and often end up working after a while only working on 1 terminal and other SSH tabs don't really matter anymore. In the browser at least you have "closer other tabs", "close left tabs", "close right tabs".

Is there any way to have a "close other tabs" in a Mac OS X terminal?


Solution 1:

As a work around, you can drag the tab you want to keep to a different window, then close the first window with the extraneous tabs and they are all gone with one click.