Skip to main content
With no target, closes the active tab. To close a specific tab, provide one of substring, regex, or index.

Parameters

ParameterTypeRequiredDescription
substringstringNoMatch the URL by substring.
regexstringNoMatch the URL by regular expression.
indexnumber | stringNoZero-based tab index.
timeoutnumberNoMaximum time in milliseconds to wait for a matching tab.

Shorthand

Bare command. Closes the active tab.
- closeTab

Examples

- closeTab:
    substring: blog
- closeTab:
    index: 1
    timeout: 5000