Cat with tapeworm

I have 2 twin cats, a little over 2 years. I took 2 stool samples in, but did not know which was from which cat. One of them is showing positive for Tapeworm. I am first of all assuming I need to treat both of them, since I have no idea who has it.

I am somewhat confused as I am reading that this comes from ingesting fleas. The cats do go on a screened in porch, but never step foot outside. We do also have a 9 yo dog who goes on trails daily. He wears a Sorresto collar. I have seen no evidence of fleas anywhere. He is on Selarid for heartworm.

The vet though generally more holistically inclined than many vets, recommends both cats be on a monthly heartworm prevention/flea control product. Since they dont go outside, I have turned down this advice in the past. I’d like input.

Praziquantel and epsiprantel are recommended to treat the Tapeworm. I’d like input on this too.

Thanks so much.