that doesnt work -g$1 closes all gets.

Code:
;
; CLOSEGET/SEND FORMAT N / nick,[N]
;  N = get/send number to close
;   or
;  nick = nick of get(s)/send(s) to close
;  N = specific nicks get/send number to close, no N value deemed to close all nicks gets/sends
;
alias closeget {
  if (!$2) { 
    if ($1 isnum) { close -g $+ $1 }
    else { while ($get($1,1)) { window -c "Get $1 $get($1,1).file $+ " } }
  }
  elseif ($get($1,$2) == $1) { window -c "Get $1 $get($1,$2).file $+ " }
}
alias closesend {
  if (!$2) { 
    if ($1 isnum) { close -s $+ $1 }
    else { while ($send($1,1)) { window -c "Send $1 $get($1,1).file $+ " } }
  }
  elseif ($send($1,$2) == $1) { window -c "Send $1 $send($1,$2).file $+ " }
}