15 weeks & stopped smoking

Hey mamas, i know i could’ve went a little farther but i was just smoking in my first tri to get through my HG & also i have really bad prenatal anxiety from miscarrying, i was wondering how long it takes consistent smokers to test negative? & if i should be worried abt my baby testing positive at all since i stopped already? i live in a state where recreational is legal for anyone over 21 so i’m not sure how that works