There are some people and environments that give us positive energy. And, there are some people and environments that unfailingly manage to suck our energy.
If we have no choice but to spend time with the latter, we need to learn to interact with a complete lack of attachment and be “matchers” rather than “givers.” When we become matchers, we only give as much as we get.
Also, there’s a chance that someone who was a source of a ton of positive energy once no longer is. That happens, sadly.
The first step is to be aware and to identify the difference.
Then, when given a choice, spend time with the former. And, when doing so, work on building a life where we can do more of that.