On macOS, if there are multiple notifications showing, how to dismiss them all at once?
You should be able to show the notification center (top-right icon, looks like a list), which shows you your historic notifications grouped by day.  There's a little x at the top right of each group, which dismisses the entire day's notifications.

[