[Context] The method of gyrochronology relates the age of its star to its rotation period. However, recent evidence of deviations from gyrochronology relations has been reported in the literature.[Aims] We study the influence of tidal interaction between a star and its companion on the rotation velocity of the star to explain peculiar stellar rotation velocities.[Methods] We followed the interaction of a star and its planet using a comprehensive numerical framework that combines tidal friction, magnetic braking, planet migration, and detailed stellar evolution models from the GARSTEC grid. We focus on close-in companions from 1 to 20 MJup orbiting low-mass (0.8 − 1 M⊙) main-sequence stars with a broad metallicity of [Fe/H] = − 1 up to solar...