Open Arduino IDE
Link: https://arduino.esp8266.com/stable/package_esp8266com_index.json
Click File > Preferences and copy the link and paste that in the Additional Boards Manager URLs then press OK
Click File > Board > Boards Manager and search for esp8266 and intall the latest Version
Now good to go....✌🏻 Peace Out🤘🏻