There’s no built in command, but you can create one using a Logical Editor preset in a macro with the hide command.
type --equal to --note
Property --property is set --event is muted
save the preset as, say. ‘hide muted notes’
Create a macro to make this a one-keystroke command:
macro:
Process Logical Preset – hide muted notes
Score Functions - Hide