Resting your arm and not throwing is the first step of treatment. Anti-inflammatory medications will help reduce the pain and inflammation. You may have physical therapy and an evaluation to make sure that your throwing mechanics aren’t contributing to the issue. Injections may also help.
If you have a complete tear, surgery may be necessary.