I was looking for a way to undo close tab in firefox an I have found an extenssion for it.
But a comment on the page says: " Useless Press Ctrl. Shift T instead of installing an add on for it." And that's quite true! :)
You can also view the recently closed tabs in the history menu.