The commands in the tab context menu rely on a bit of magic, and they won't work outside of the right click context menu (as they operate on the tab under the mouse cursor, not the one that has input focus).

There isn't a built in command that does what you want, but it is possible to make one via the python API.

Thanks for the code! But, how would I take this and bind it to a key? I placed the code in a Python file and put it in the Users/Packages directory. I also changed it to extend sublimeplugin.TextCommand instead of WindowCommand.

It doesn't make sense to extend TextCommand because you're not operating on text, does it?

Also, if you do so you will get a `view` object passed to `.run` instead of a `window`, so the first version won't work. You could modify the code to make it work as a TextCommand, but I see little reason to do so.

Thanks for the response. I'm still a little unclear how to take the code you wrote and have it run when I hit a given key combination (let's say ctrl+t). I changed it back to your original code and placed it in Packages/User. I also added the key binding shown above, but it still doesn't close all other tabs when I press the key combination. Any ideas?