The API should return an integer.
Focus the tab's window, closes #9.