I set an alarm for when I'm supposed to stop work, close everything and then set it out of sight (my laptop goes in the closet). I find the Pavlovian conditioning helps stop my mind from ruminating after a certain time of day.
It takes commitment to consistency, but it’s extremely effective for me to associate the light switch to my work day.