Alt-Cmd-W to close all windows, much like many other applications on OS X.