Thujone is the ingredient that kills parasites, but must be small doses, like a ticture
Absinthe is a liquor, might as well drink a better liquor because the wormwood is tok weak in that.
see
https://www.npr.org/sections/goatsandsoda/2019/01/03/680542815/if-a-worm-makes-you-sick-can-this-cup-of-tea-cure-you