Let your child know that you are there to support them, and if there are ways you can support their friend, offer that as well.
Remind your child that supporting someone who has experienced harm can be difficult, and it is okay if they feel upset or overwhelmed. Tell them that they can always talk to you if they need help navigating the situation, and address setting boundaries with the friend or getting your child some counseling if appropriate.