Selling cigarettes

Q: I live with my grandparents and they have a shop which sell mostly biscuits & they also sell cigarattes! (According to some sholars in my country cigrattes are makrooh, while I have heard some Arab scholars say its haraam).

I want to be on the safe side so, as I live in their house my concern is I use electricity/internet to learn as I learn online! Will my online earning be halal if I pay them later on for electricity/internet I use?