I’m giving up smoking at 10 weeks..

Now please no judgement I’ve been having a real struggle to give up smoking. I found out I was pregnant and tried to give up but failed, I’m now smoking again but i have come up with a plan where for the next 3 weeks I will reduce the amount I smoke and eventually stop. I hope this method works out for me, has anyone done similar? Again please don’t judge I had two miscarriages where I did give up and it can’t click in my head that I’m pregnant enough to give up I think please help!