how do you stop missing an ex?

he was my best friend I told him everything. it’s been 3 months since we split and we don’t talk anymore. I want to be over him... he was my first love. how do you stop missing someone?