This replicates `last-window` in tmux. To pull this off, I deliberately store the last tab whenever I'm activating a new one or spawning a new one. I had to do this explicitly rather than hooking set_active, because we end up setting the active tab briefly for some common operations like moving a tab.