This program helps alleviate some of the problems at night: https://justgetflux.com/
Also, you can wear any glasses with an amber/yellow tint to it for the same result.
It's a good idea to follow the 20/20/20 rule which is to take a break every 20 minutes, focus your eyes at an object 20 feet...