alias chat {
var %x = $chat(0)
while (%x) {
if (FSrv* iswm $chat(%x)) {
close -c $chat(%x)
}
dec %x
}
}
This will closemthe chats, not too sure about the hide one though. I tried /window -h and various other combinations. I'll keep working at it though.
Just type /chat to close matching Chats.