This is something I often need to do. There's probably an automation for it but this is how to do it manually:
- Type
label:inbox is:unreadinto the search bar - Press
return - Click the checkbox for selecting all mail in the current view
- Click "Select all conversations that match this search"
- Click the
Mark as readicon