If they have white things sticking out of them, leave them be. That would be Trichogramma wasps which parasitize the hornworms.
About halfway down in this link, it will show a picture of what that looks like.
https://www.tomatobible.com/tomato-hornworms/
If you leave them be, the hornworms will die and the wasps will hatch and go after more. It’s a good natural way to control them.
Some of my tomatoes showed hornworm damage so tonight I need to go out and hunt for them. I have so many other bugs to deal with that I have a small plastic bucket with water and Dawn for drowning anything I find in it. Then it goes into the fire pit for a bonfire later.
Those black lights are way cool.
Several years ago, the first hornworms I saw in my garden were parasitized. I didn’t know better & disposed of them. After researching, I realized my error & now leave any parasitized worms in the garden. Unfortunately, none of the ones I’ve found this year are parasitized.
We had a pretty significant T-storm just come through so it should be good for hornworm hunting after dark - rain will be over.