You can use this by importing the function into the console (or your app)
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ true, 1635358774575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ false, 1635358774575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ false, 1635358774575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ true, 1635358775575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ false, 1635358775575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ false, 1635358775575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ false, 1635358775575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ true, 1635358776575 ]
> x = rateLimit(a, {rps: 1, grace: 2}); a = x[1]; x
[ false, 1635358776575 ]