A negative person who complains or vents a lot can drain the life out of you. Life is short. Often, it’s best to simply detach and enjoy more interesting people or other pursuits.
Sometimes, however, you may want, or need, to have that person in your life because they are family or a co-worker. In those cases, you can’t control the other person, but you can control how you respond to them.