Make "Close other tabs" and "Close tabs to the right" buttons less problematic

If you don’t have buttons to close tabs, which happens when you have many open as I do, you may have to right-click a tab to close it. The “Close other tabs” and “Close tabs to the right” buttons are right by it and do their thing right away. Before you know it, most of your tabs are gone. And unlike when you accidentaly close a whole window, you can’t bulk reopen tabs like this.