Well a long term friendship is probably over for me, since I blindsided her in court and got her sent to jail for six months
Yeah she's probably not speaking to you anymore. What did your friend do that justified such a harsh action?
She tried to keep me quiet by threatening me, I took action to protect myself.
It is a crime to intimidate a witness. It is good you took action and got safety.
Maybe it's wrong but I feel good about this.
I don't think it's wrong that you feel good. What you did ensured your safety and being safe feels good. I think you did the right thing here.