Second, cultivate other hobbies to fill your empty life. In this way, when you are bored, you have something to do.
Third, make more friends who don't smoke, or persuade friends who smoke to quit smoking, and then get together with friends when they are bored, at least make a phone call.