It typically takes 24 to 48 hours for a dewormer to kill worms in cats. After treatment, some cats may briefly pass more worms as dormant eggs hatch and are expelled before they can mature.
Follow your veterinarian's recommended deworming schedule and monitor your cat for any ongoing signs of parasites.