"To get a life" means to start doing interesting or fulfilling activities that improve your personal well-being and happiness. It suggests that the person being told should stop wasting time on unimportant or boring things and begin pursuing a more engaging and meaningful existence.