Google Apps Script API
    Preparing search index...

    A tab within a Google Docs document.

    // 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();
    
    interface Tab {
        asDocumentTab(): DocumentTab;
        getChildTabs(): Tab[];
        getId(): string;
        getIndex(): number;
        getTitle(): string;
        getType(): DOCUMENT_TAB;
    }
    Index

    Methods