// Get all of the first-level tabs (tabs that are not nested within a parent
// tab) in the document.
const tabs = DocumentApp.openById('123abc').getTabs();
// Get a specific tab based on the tab ID.
const tab = DocumentApp.openById('123abc').getTab('123abc');
// Get current tab of current document
const tab = DocumentApp.getActiveDocument().getActiveTab();
A tab within a Google Docs document.