This is kind of an odd name for this functionality as it doesn't set anything. Wouldn't `switchTab` be more appropriate?