I saw rsigg's review and your reply in that you were having trouble identifying which group a tab belonged to. You can figure out which group it is by going `tab._tabViewTabItem.parent.id`. This `id` is an integer.
This is how to do it:
``` var tab = gBrowser.tabContainer.childNodes; //non-sdk code gBrowser.selectedTab = tab; //non-sdk code console.log(tab._tabViewTabItem.parent.id) //works both in sdk and non-sdk ```
Note: pinned tabs dont have the `_tabViewTabItem` property. So thats how you can tell if its pinned.