Thanks! I modified it slightly due to the fact that I'm creating my tabs dynamically. It got a lot shorter.

As an aside, I really wish you'd make it where every method that takes an index or a tab title would also take a tab object. So often I already have the tab object and it seems kind of silly to have to look the index back up to pass to the method. (And I can't pass that title because I can have multiple tabs with the same title.)