It’s easy to close a window on the Mac: just click the red button at top left. If you have several windows open it takes several clicks: one per window. But, if you hold the Option key while clicking a close box, all windows from that app will close. Works in Finder, Mail, and Safari, and many others (but not all).
Keyboard shortcut: ⌘-Option-W, but it doesn’t work everywhere.