How do I set an explosion/damage radius for a current TTT swep im making?

You’ll need to find players within a sphere around the explosion point and apply damage appropriately. You can do so using ents.FindInSphere.

But i mean like in the custom code swep shared.lua. I use that in that in the code?

Post the code for the SWEP you are working on.