Ctrl + Shift + T
One of my most favorite and productive shortcuts is Ctrl + Shift + T.
The shortcut works in internet browsers, as well as in some code editors like Visual Studio Code.
It will reopen the last accidentally closed tab. When used repeatedly, it will keep opening previously closed tabs. I use it all the time.
If you don’t use it yet, give it a try,
Petr