To prepare for situations like that, you need to practice day and night to master the reflex of quickly closing tabs.
However, if you have 3-4 sensitive tabs open next to each other, it will take quite a bit of time to close or hide them all quickly, not to mention that you’re in a panic mode. Therefore, today I will guide you on how to quickly hide all open tabs with just one click.
Step 1: First, visit the Chrome Web Store here and select Add to Chrome to install the extension called Panic Button.

This is a lightweight and free extension for Chrome, so feel free to use it!
Step 2: When a confirmation message appears on the screen, select Add Extension.

Step 3: After adding to Chrome is complete, you will see the exclamation mark icon of the extension next to the address bar.

From now on, every time you click this icon, all open tabs will be minimized into a single tab. If you want to restore the tabs, just click the exclamation mark icon again.
Since this is your first time using it, when you minimize all the tabs into a single tab (let’s call it the minimized tab), that tab will display the manufacturer’s page. However, you can completely customize this minimized tab to be any website you want, such as Facebook, YouTube, Google, etc.
To customize the minimized tab, right-click on the exclamation mark icon and select Options.

The settings page will appear, scroll to the bottom and find the Set a safe page section, then click on the menu bar below. Here, you have three options:
New tab page: the minimized tab will become Google’s search tab. Blank page: the minimized tab will become a blank tab. Custom page: the minimized tab will become the website you desire. You just need to copy and paste the link of that website.

Additionally, Panic Button also provides a shortcut key to quickly hide instead of clicking the exclamation mark icon.

If you want to remove this extension, just right-click on the exclamation mark icon and select Remove from Chrome.

So I have finished guiding you on how to quickly hide open tabs on Chrome. Good luck to you!
According to Gearvn