Find friends outside of work
If your only friends are your friends at work, it'll be more challenging to avoid work on evenings and weekends. If you do have coworkers as close friends, consider setting some boundaries around work talk.
Try to avoid getting drawn into office drama, as it will increase the time you spend talking and thinking about work.