This is an old topic but it took me a while to find a good tutorial on this for photoshop.
Here’s one: Solidifying Transparent Textures - YouTube
Then you have to Save a Copy...
and select SuperPNG, if you have it installed, and select the newly created alpha channel.