Little overpriced but I've found Loop Earplugs to help working in coffee shops, etc. Muffles out most of the sound but not everything, enough to focus but not fly off your seat if someone taps your shoulder.
If you work on the kitchen table and that’s where you play, also, the mind and body have hard times disengaging from work.