Update current tab with given parameters

Allows e.g. easily setting a badge to the current tab.