For those of us who use Firefox (and if you’re not, you really should), I just saw what may be the best tip ever.
When you accidentally (or maybe not) close a tab, just use the following keyboard combination Ctrl-Shift-T (Cmd-Shift-T for Mac users) to reopen the last Tab you closed.
Awesome.