Johnny,
Sorry for the late reply. You may not need the TabModuleId to get the tabs that the module is on. You can just do this:
var moduleTabs = TabController.Instance.GetTabsByModuleID(moduleId);
foreach (KeyValuePair<int, TabInfo> oTab in moduleTabs)
{
// Do something with each (TabInfo) oTab.Value
}