You should refrigerate peanut butter cookie dough before baking in an air fryer. That way you'll be sure the dough is firm enough that it will not expand or spread too much while baking. Chill the dough at least 30 minutes.