Quote:
/close by $wid


Assuming %wid has the wid in it then it is window -c $+(@,%wid) (well not work on some windows channel/status1 for obvious reasons)