How to reinstall Macos on my mac after accidentally modifying the efi folder?

(I know this subreddit is not related to hackintosh, but I need a way to reinstall macos on my real mac)

So I wanted to create a macos installer for my pc and in the process when I was moving the efi folder I accidentally moved it to the real mac's internal drive and not the usb drive, and not it won't boot. The screen is black, and pressing the power only brings the fan on, and I can't turn it off. How can I reinstall my macos on my mac? I can erase the whole disk if I have to.

submitted by /u/entryjyt
[link] [comments]