Sounds like OP handled it well enough, it can be hard to think straight in certain situations and what actions to take when you have only a minute or so to take them, moreso if you’re not used to these types of events, though I wouldn’t consider it a code red, barely warm yellow, no personal interaction, not even seen, still outside/inside and the target was a neighbor.
Not trying to be a jerk by saying that, just that it could’ve been a lot worse for sure. Regardless, OP got some good training and nobody died. Junkies and thieves are everywhere.
Not sure what town this was, or how big, but a K-9 would’ve been the best response if they had one on hand, even holding onto the woman until a K-9 could arrive from a neighboring town to assist. Sounds like the popo dropped the ball on that for sure.