# window.Window.equals

- **Module:** window.Window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L509
- **Page:** https://libtmux.org/reference/ts/window-window-equals/

```
window.Window.equals(other: : unknown) -> boolean
```

Whether `other` is this same window on this same server.

The socket, the daemon that answered, and `@n` all have to match: tmux ids
are unique only within one running daemon, and a restart reissues them. Two
placements of one linked window are the same window, so this is true for
both. {@link sameTmuxIdAs} asks the weaker question.

## Example

```ts
window.equals(await window.refreshed()); // true
```
