Cotal TypeScript packages
    Preparing search index...

    Function closeWindowIfHeld

    • Kill window windowId (@N) only while session holds it and pane paneId (%N) is in it or gone, and report whether it was killed. tmux checks and kills in one command, so a pane or window that moves after the caller's own listing cannot pass a stale check and lose its window.

      Parameters

      • session: string
      • windowId: string
      • paneId: string

      Returns boolean