docs: def kill_window(self, target_window=None):
          """Close a tmux window, and all panes inside it, ``$ tmux kill-window``
  
          Kill the current window or the window at ``target-window``. removing it
          from any sessions to which it is linked.
  
          Parameters
          ----------
          target_window : str, optional
              window to kill
          """
  
          if target_window:
              if isinstance(target_window, int):
                  target = '-t%s:%d' % (self.name, target_window)
              else:
                  target = '-t%s' % target_window
  
          proc = self.cmd('kill-window', target)
  
          if proc.stderr:
              raise exc.LibTmuxException(proc.stderr)
  
          self.server._update_windows()