Yes. you can hold down Command + Option + W to close all windows of a currently active application on Mac.