i get code errors on tm1637

this is the error message im getting

countdown_led_display:57:20: error: a function-definition is not allowed here before '{' token
void displayText() {
^
exit status 1
a function-definition is not allowed here before '{' token


#include <TM1637Display.h>

// includes the library

// define the connections pins :
#define CLK 2
#define DIO 3

//Macros to retrieve the fractional seconds and minute parts of a time

#define numberOfSeconds(time) ((time/1000) % 60 )
#define numberOfMinutes(time) (((time/1000) / 60) % 60)

//constants
const uint8_t OFF [] = {0, 0, 0, 0};
const uint8_t PLAY[] = {B01110011, B00111000, B01011111, B01101110};

//Globals
// Create a display objext, specifyng parametres (clock,data pin)
TM1637Display display (2, 3);

// 1000ms in 1 sec, 60secs in 1min, 600secs in 10 min, so, 1000x60x10 =600000ms = 10 mins
unsigned long timeLimit = 600000;

//
void setup() {
Serial.begin (9600);
//brightness of the display
display.setBrightness(0x0c) ;
//clear the display
display.setSegments(OFF);

void countdown() {
//calculate the time remaining
unsigned long timeRemaining = timeLimt - millis();

while(timeRemaining > 0) {
//To display in mm:ss format
int seconds = numberOfSeconds (timeRemaining) ;
int minutes = numberOfMinutes (timeRemaining) ;

//to display the seconds in the last two digits
display. showNumberDecEx(seconds, 0, true, 2, 2);
//minutes in the first two digit
display.showNumberDecEx(minutes,0x80>>3, true,2,0);

//time remaining updates
timeRemaining = timeLimit - millis();

}
}

void displayText() {
display.setSegments(PLAY);
delay(2000);
}
}

void loop() {
// put your main code here, to run repeatedly:

}

void setup() {
  Serial.begin (9600);
  //brightness of the display
  display.setBrightness(0x0c) ;
  //clear the display
  display.setSegments(OFF);

 
void countdown() {

No closing brace at the end of the setup function.

void displayText() {
  display.setSegments(PLAY);
  delay(2000);
}
}

Too many closing braces at the end of the dsiplayText function.

Put your cursor after an opening brace and a square is drawn round the matching closing brace.