Add commands to open/close tabs and switch between them. The `close-tab` should take an index of the tab to close.