From an interaction with Github Support regarding phantom notifications (ones that I could not mark as read).
Using gh cli.
Running the script to mark notifications as "read" is generally considered safe, as it does not
remove the notification itself, only updates the status of the notification. Here is the script:
gh api \
--method PUT \
-H "Accept: application/vnd.github+json" \