To reduce the muscle spasm and pain, visit nearby physiotherapy clinic and take IFT and Ultrasonic therapy-7days.
Maintaining a proper posture and ergonomics will help u to reduce spasm
Next Steps
After reducing pain start doing neck mobilization exercises and isometric to neck, stretching to trapezius muscle will help u