I have to consciously just stop what I am doing. Even if I'm just sitting and my brain is whirling, I just stop my brain for a few seconds.
For me, that edginess is from depression and anxiety. Or I'm too tired. Or whatever, the wind is blowing wrong!!
Then I just do some self-talk. Just like I would anyone else that is having a rough time.
I try to see what is keeping me edgy if it's something environmental, like a dripping faucet, my dog making demands, or the wind is blowing wrong!

I put the smiley because sometimes that's all it takes, the wind!!!
I understand and it's energy-draining isn't it! I find that I have to distract. I read a lot and that helps. I try to read something that grabs my attention or I am just reading the same line over and over or, I'm not remembering the storyline.
I do find something simple called Zentangle helps. Google it. It is drawing and you don't have to have any drawing talent at all!! I promise. You can make some very interesting drawings with zentangle. I've shared this on this forum a hundred times and rarely does anyone try it. It's simple, doesn't cost a thing and it just slows the brain down.
Are you on any medications? That might help too depending on what's causing the edginess. Hope you find something that works. Being edgy just zaps my energy.