How do I modify friction to make a Spinning Circle stop at a specific angle?

I am creating a Spinning Wheel game in Javascript. When a button is clicked, a random velocity is set. When the stop-button is clicked, a friction is applied to the velocity. When fricition is activated, every frame this happens:

// friction = 0.98;
velocity = velocity * friction;
theAngle = theAngle + velocity;

When velocity < 0.002, the wheel will stop.

What I want to do here is, is modify the friction variable so that the Wheel stops at an angle I can pick myself.

So far I have succeeded in calculating the stopAngle, and the number of frames the wheel spins.

let angle = theAngle // the current angle (before stopping)
let speed = velocity;
let frames = 0;
let willStopAtAngle = angle;
const targetSpeed = 0.002;
while (speed > targetSpeed) {
speed *= config.friction; 
frames = frames + 1; 
angle = angle + speed; 
}

I have also calculated the angle I want the wheel to stop, and I know this is correct.

const diff = stopAngle - (angle % (Math.PI * 2));
const actualStopAngle = angle + stopAngle

I feel like I know enough, but I just don’t know how to calculate the right friction

friction = (actualStopAngle - theAngle)/frames // I thought something like this might work;

Thanks!