It’s important to have a separate computer, and ideally a completely separate room, where you do ‘work’. When your office hours are over, the work computer goes off and you exit your at-home ‘office’. That’s helped me separate work and keep my sanity.