Cotal TypeScript packages
    Preparing search index...

    Function closeWorkspace

    • Close a workspace (tab) by id/ref. Idempotent: closing an already-gone tab is a no-op, not an error — both runtime teardown and stale-ref cleanup mean "ensure it's closed". Only cmux's workspace-not-found is swallowed; other CLI/socket failures still throw.

      Parameters

      • workspace: string
      • opts: { timeoutMs?: number } = {}

      Returns void