Closing the browser tabs one by one is a pain. With Chrome and Firefox you can select tabs in the address bar and you can quickly close those tabs with a hotkey or your mouse.
How to select multiple tabs and close them
To select individual tabs, hold down Ctrl and click the tabs you want to close. To select a range of tabs, click a tab, hold down the Shift key, and then click another tab. All tabs between the two will be selected. You can then hold down the Ctrl key and click on the selected tabs to deselect them if you want. You can also hold down the Ctrl key to select multiple individual tabs instead of an interval.
To close selected tabs, either click "x" on one of them or press Ctrl + W to close them all. You can also right-click on one of the tabs and click "Close Tabs." (On a Mac, press Command + W instead of Ctrl + W.)
Chrome displays a brighter background behind each selected tab, while Firefox displays a subtle blue line above each selected tab . The moment you interact with the browser normally, for example, by interacting with a web page if you click on a tab to view the tabs immediately unchecked.
This is the same trick that lets you move multiple tabs to a new window. Just select the tabs and drag them from your Chrome or Firefox browser window to give the selected tabs a new window.
This is a small but useful trick that changed our workflow when we found out. Chrome has been able to do it for quite some time, but Mozilla added it to Firefox in version 64.0. Firefox contained this option in versions 62 and 63, but only if you went out of the way to enable this setting.
Microsoft Edge and Apple's Safari don't have this option yet, but Edge will soon use a Chrome Engine fork that drives Chrome, so it should have the same capabilities then.
How to close multiple tabs without selecting them
Chrome, Firefox and other modern browsers can close multiple tabs without selecting them first. This option is easier to find.
To find it, right-click on a tab in the browser's field field. You can then select options such as "Close other tabs" to close all tabs except the current one in the browser window or "Close tabs to the right" to close tabs to the right of the current tab. You can drag and drop tabs to rearrange them before doing this.