Sends: /close -s
Gets: /close -g
Chats: /close -c

See /help /close for more.

To make sure a dcc send window is auto-closed on finish, start it with the following command: /dcc send -c nick file