Having a close friend at work can make you happier, more productive, and less likely to quit. But office friendships can have downsides, too. When you’re neglecting your responsibilities to tend to a work friend, it’s a sign that something needs to change. But, in most cases, there’s no need to abruptly end the relationship. Instead, gradually shift how you interact so that you’re spending less time communicating with the person. For example, if you spend a lot of time together in person, replace those interactions with emails. You can also offer to connect the person with someone who can help them with their problems. And don’t give in if they try to pull you back in; you need to hold strong to the boundaries you’ve set.