Lightning Experience の getFocusedTabInfo()
getFocuedTabInfo().then(tabinfo)=>{
closeTab(tabinfo.tabId);
or
closeTab(tabinfo.parentTabId);
}
----------------------------------------------------------------------
getFocuedTabInfo().then(tabinfo)=>{
closeTab(tabinfo.tabId);
or
closeTab(tabinfo.parentTabId);
}
----------------------------------------------------------------------